package com.example.zhaoping.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_enterprise")
public class Enterprise {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private String username;
    @JsonIgnore
    private String password;
    private String avatar;
    private String name;
    private String email;
    private String phone;
    private String manage;
    private String address;
    private String intro;
    @TableField("createTime")
    private Date createTime;
}
